﻿@model ITSTOREBLL.SanPham

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>SanPham</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_ID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sp_ID)
            @Html.ValidationMessageFor(model => model.sp_ID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_Ten)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sp_Ten)
            @Html.ValidationMessageFor(model => model.sp_Ten)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_Gia)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sp_Gia)
            @Html.ValidationMessageFor(model => model.sp_Gia)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_Loai, "LoaiSanPham")
        </div>
        <div class="editor-field">
            @Html.DropDownList("sp_Loai", String.Empty)
            @Html.ValidationMessageFor(model => model.sp_Loai)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_SoLuong)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sp_SoLuong)
            @Html.ValidationMessageFor(model => model.sp_SoLuong)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_ThongTin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sp_ThongTin)
            @Html.ValidationMessageFor(model => model.sp_ThongTin)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_ThongTinChiTiet)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sp_ThongTinChiTiet)
            @Html.ValidationMessageFor(model => model.sp_ThongTinChiTiet)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_Hinh)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sp_Hinh)
            @Html.ValidationMessageFor(model => model.sp_Hinh)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_NhaSanXuat, "NhaSanXuat")
        </div>
        <div class="editor-field">
            @Html.DropDownList("sp_NhaSanXuat", String.Empty)
            @Html.ValidationMessageFor(model => model.sp_NhaSanXuat)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.sp_LuotXem)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.sp_LuotXem)
            @Html.ValidationMessageFor(model => model.sp_LuotXem)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
